//subject_class_section
	function check(){
	var flag = 'false';
	$('.subject_class_section input:text').focusout(function() { 	 
		$('.subject_class_section input:text').each(function(){
			if($(this).val().length == 0){
				flag = 'true';
			}
			else{
				flag1 = 'false'
			}
		});
		if(flag == 'true'){
			//do nothing
			flag = 'false'
		}
		else{
			var display = '<div class="textfield_box"><input type="text" name="Subject" placeholder="Subject" class="detailed_textfield content_pink" onblur="check()"> | <input type="text" name="Class" placeholder="Class" class="detailed_textfield content_blue" onblur="check()"> | <input type="text" name="Section" placeholder="Section" class="detailed_textfield content_pink" onblur="check()"></div>';
			$('.subject_class_section').append(display);
		}
	});
	
	}

	
//subject_class_section
	function check2(){
	var flag = 'false';
	$('.subject_class_section2 input:text').focusout(function() { 	 
		$('.subject_class_section2 input:text').each(function(){
			if($(this).val().length == 0){
				flag = 'true';
			}
			else{
				flag1 = 'false'
			}
		});
		if(flag == 'true'){
			//do nothing
			flag = 'false'
		}
		else{
			var display = '<div class="textfield_box"><input type="text" name="Subject" placeholder="Subject" class="detailed_textfield content_pink" onblur="check2()"> | <input type="text" name="Class" placeholder="Class" class="detailed_textfield content_blue" onblur="check2()"> | <input type="text" name="Section" placeholder="Section" class="detailed_textfield content_pink" onblur="check2()"></div>';
			$('.subject_class_section2').append(display);
		}
	});
	
	}
	
	
	
/*subject_class_section
	function check3(){
	var flag = 'false';
	$('.subject_class_section2 input:text').focusout(function() { 	 
		$('.subject_class_section2 input:text').each(function(){
			if($(this).val().length == 0){
				flag = 'true';
			}
			else{
				flag1 = 'false'
			}
		});
		if(flag == 'true'){
			//do nothing
			flag = 'false'
		}
		else{
			var display = '<div class="textfield_box"><input type="text" name="Subject" placeholder="Subject" class="detailed_textfield content_pink" onblur="check2()"> | <input type="text" name="Class" placeholder="Class" class="detailed_textfield content_blue" onblur="check2()"> | <input type="text" name="Section" placeholder="Section" class="detailed_textfield content_pink" onblur="check2()"></div>';
			$('.subject_class_section2').append(display);
		}
	});
	
	}*/
	
	
//subject_class_section
	function check2(){
	var flag = 'false';
	$('.subject_class_section2 input:text').focusout(function() { 	 
		$('.subject_class_section2 input:text').each(function(){
			if($(this).val().length == 0){
				flag = 'true';
			}
			else{
				flag1 = 'false'
			}
		});
		if(flag == 'true'){
			//do nothing
			flag = 'false'
		}
		else{
			var display = '<div class="textfield_box"><input type="text" name="Subject" placeholder="Subject" class="detailed_textfield content_pink" onblur="check2()"> | <input type="text" name="Class" placeholder="Class" class="detailed_textfield content_blue" onblur="check2()"> | <input type="text" name="Section" placeholder="Section" class="detailed_textfield content_pink" onblur="check2()"></div>';
			$('.subject_class_section2').append(display);
		}
	});
	
	}
	
	
	
//subject_class
	function check3(){
	var flag = 'false';
	$('.subject_class input:text').focusout(function() { 	 
		$('.subject_class input:text').each(function(){
			if($(this).val().length == 0){
				flag = 'true';
			}
			else{
				flag = 'false'
			}
		});
		if(flag == 'true'){
			//do nothing
			flag = 'false'
		}
		else{
			var display = '<div class="textfield_box"><input type="text" name="subject[]" name="subject" placeholder="Subject" class="detailed_textfield content_pink" onBlur="check3()"> | <input type="text" name="class[]" name="class" placeholder="Class" class="detailed_textfield content_blue" onBlur="check3()"></div><div class="clear"></div>';
			$('.subject_class').append(display);
		}
	});
	
	}	
	
	
	
//subject_class2
	function check4(){
	var flag = 'false';
	$('.subject_class2 input:text').focusout(function() { 	 
		$('.subject_class2 input:text').each(function(){
			if($(this).val().length == 0){
				flag = 'true';
			}
			else{
				flag1 = 'false'
			}
		});
		if(flag == 'true'){
			//do nothing
			flag = 'false'
		}
		else{
			var display = '<div class="textfield_box"><input type="text" name="Subject" placeholder="Subject" class="detailed_textfield content_pink" onBlur="check4()"> | <input type="text" name="Class" placeholder="Class" class="detailed_textfield content_blue" onBlur="check4()"></div><div class="clear"></div>';
			$('.subject_class2').append(display);
		}
	});
	
	}
	
//books_container
	function check5(){
	var flag = 'false';
	$('.books_container textarea.detailed_textfield3').focusout(function() { 	 
		$('.books_container textarea.detailed_textfield3').each(function(){
			if($(this).val().length == 0){
				flag = 'true';
			}
			else{
				flag1 = 'false'
			}
		});
		if(flag == 'true'){
			//do nothing
			flag = 'false'
		}
		else{
			var display = '<div class="textfield_box"> <textarea name="books_that_i_have_read" placeholder="Books that I have read" class="detailed_textfield3 content_blue" onBlur="check5()"></textarea></div><div class="clear"></div>';
			$('.books_container').append(display);
		}
	});
	
	}
	
	
//movies_container
	function check6(){
	var flag = 'false';
	$('.movies_container textarea').focusout(function() { 	 
		$('.movies_container textarea').each(function(){
			if($(this).val().length == 0){
				flag = 'true';
			}
			else{
				flag1 = 'false'
			}
		});
		if(flag == 'true'){
			//do nothing
			flag = 'false'
		}
		else{
			var display = '<div class="textfield_box"> <textarea name="movies_that_I_have_seen" placeholder="Movies that I have seen" class="detailed_textfield3 content_pink" onBlur="check6()"></textarea></div><div class="clear"></div>';
			$('.movies_container').append(display);
		}
	});
	
	}
	
	
//associations_container
	function check7(){
	var flag = 'false';
	$('.associations_container textarea').focusout(function() { 	 
		$('.associations_container textarea').each(function(){
			if($(this).val().length == 0){
				flag = 'true';
			}
			else{
				flag1 = 'false'
			}
		});
		if(flag == 'true'){
			//do nothing
			flag = 'false'
		}
		else{
			var display = '<div class="textfield_box"> <textarea name="My Associations" placeholder="My Associations" class="detailed_textfield3 content_blue" onBlur="check7()"></textarea></div><div class="clear"></div>';
			$('.associations_container').append(display);
		}
	});
	
	}
	
	
	
//blog_container
	function check8(){
	var flag = 'false';
	$('.blog_container textarea').focusout(function() { 	 
		$('.blog_container textarea').each(function(){
			if($(this).val().length == 0){
				flag = 'true';
			}
			else{
				flag1 = 'false'
			}
		});
		if(flag == 'true'){
			//do nothing
			flag = 'false'
		}
		else{
			var display = '<div class="textfield_box"> <textarea name="my_blogs" placeholder="My Blogs" class="detailed_textfield3 content_blue" onBlur="check8()"></textarea></div><div class="clear"></div>';
			$('.blog_container').append(display);
		}
	});
	
	}
	
	
	
//website_container
	function check9(){
	var flag = 'false';
	$('.website_container textarea').focusout(function() { 	 
		$('.website_container textarea').each(function(){
			if($(this).val().length == 0){
				flag = 'true';
			}
			else{
				flag1 = 'false'
			}
		});
		if(flag == 'true'){
			//do nothing
			flag = 'false'
		}
		else{
			var display = '<div class="textfield_box"> <textarea name="my_websites" placeholder="My Websites" class="detailed_textfield3 content_pink" onBlur="check9()"></textarea></div><div class="clear"></div>';
			$('.website_container').append(display);
		}
	});
	
	}
	
	
